DEMO23: Light & Dark Mode
On demo 23 (HTML), When you switch to Dark mode, It changes back to Light mode when you change to another page
Is this encountered in your developing site that uses Demo 23?
As per our checking the Demo 23 preview mode change works fine.
To integrate the theme mode in your site please check the Theme Mode documentation.