This is one of the more annoying problems. With iOS you can set dark mode for the browser, but not for Mac. Instead, there are two utilities that cost money to do this. Dark Eyes for instance only works for five sites.
The only solution seems to be to pay or sometime certain sites can use Reader mode to be dark. Hopefully Apple will fix this at some point.
Both Firefox and Chrome have free dark modes though 😀