If you wish for more steps to reproduce then, if you can remember and you have your theme color change set to auto, go to Kagi or Google with the automatic color theme change enabled. Then, close those tabs and do not come back until your operating system has changed the color scheme.
If you then load those pages again, you will notice that they will not have yet updated their dark mode status until you refresh the page for a second time, so if you reload Kagi at night, then you will have a bright page for the first time you open.