How to keep dark theme as default in ionic 5

Hi guys, I’m trying to implement dark theme in my ionic 5 application and everything works fine but when i refresh the browser the dark theme disappears and go back to light theme, how can i set default dark theme when the user choose it (sorry for my English).