Get toggle switch to stay and not do transition each reloading / changing page

Hi, I have created a red-mode / black mode for my website and connected a toggle switch. I’ve also managed to with the help of javascript [2] made it remember the state when im surfing through the site.

The only thing I can’t figure out is how to get the toggle switch not to go from left → right each time a page is reloaded or you change the page on the website.

I figure that since the cookie remembers if its red-mode, it will start the transition since the red-mode has the transition itself in it.

What I’m trying to do is to keep the red color, but only have the transition on the element trigger, and not every time the page is reloaded/changed.

Here is my site Read-Only:
[1]: Webflow - Several

[2] the custom JAVASCRIPT: