Unfortunately we couldn’t figure out a good way to get this plugin to work with our site caching so we decided to scrap dark mode on our website.
I discovered that the issue is more specifically happening because of our cdn. When the cdn is disabled or I exclude all css files then wp dark mode works. We’d rather not exclude all css files because that is a big reason that we are using a cdn in the first place.