Edge and Chrome have a flag that does roughly this for every site, auto dark mode for web contents. I think it tries to leave photos alone instead of inverting everything, which helps on heavier pages.
Safari will have this too, as of version 26.3 (still in beta currently)
Safari will have this too, as of version 26.3 (still in beta currently)