This seems to be a browser issue when the browser tries to "force" a fake dark mode. The browser shouldn't do that for dark themes (actually most browsers don't do it).
When the browser applies its' own dark theme, there is nothing we can do.
You can try to disable the browser option to force dark themes and use one of the Pi-hole themes.