Dark mode bug in nothing 2a

Whenever I turn on dark mode it switches back to light mode after a hour or two, any solution?