I am experiencing an issue with my HTML page that has two CSS files - one for a light theme and one for a dark theme. Whenever I click the corresponding button, the theme changes to either light.css or dark.css.
The problem is that whenever I refresh the page, reload it, or go back, the theme always reverts back to the default CSS (which is the light.css file).
Is there a solution to make sure that when I click the button and refresh the page, it stays on the dark.css theme?
Thank you.