My specific usage is a site to host my own internal training content.

I want to read it in dark mode and give users that option, but I want to present it in light mode because dark mode suffers poorly from video compression when screen sharing.

I currently have a JS toggle for it which uses local browser storage, but ditching JS would be nice if possible.