Choose the correct light/dark icons as the favicon

In settings, we can choose different icons for light and dark themes – which is great!

However, I found that the favicon always follow the theme of the forum, not the browser. It is well possible that the browser uses a dark theme (dark tabtops) but the user chooses the light theme. In this case, the dark-theme logo should still be used as the favicon.

What do you think?

A real-world example is github.com. I found that their favicon always follows the browser theme, while their icon on the page follow the website theme.