MacOS menu bar changes color from black to white when switching virtual desktops – possible to make pin it to a single color?

So my menu bar changes its color when I switch virtual desktops. On desktop 1, I have black text on a white menu bar. On Desktop 2, it is white text on white menu bar. On desktop 3 and beyond, it is white text on a dark menu bar:

enter image description here

Not sure whether this is a bug, but the menu bar on Desktop 2 is mostly unreadable. I also tried switching “Allow wallpaper tinting in windows” off, however, this didn’t fix the problem. I would prefer to have the same menu bar (like on Desktop 1) on each virtual desktop. Is that possible?