Thank you for your answer. We actually have three different themes, and two of them are customised with CSS (to change the header for Halloween, Christmas). So if I understand correctly, with this setup it’s not possible to get automatic dark theme to work properly, is that correct?
It’s not ideal but I guess I could live with this. Maybe we need to change our headers so that the light mode header works in dark mode too.