When users switch to dark mode, the setting reverts back to light mode after refreshing the page. The issue is related to the dark mode preference not being saved correctly in local storage.