This, the same as dark mode, and media queries etc, all completely undermines the core idea of the web - a semantic representation of data, rendered by a user agent, according to the users preferences.
CSS & JS are the opposite.
Yes, I realize it's a losing battle, but it's a depressing thing nonetheless.