I’ve also had a terrible experience with DPI scaling under Linux.
My Thinkpad Nano has a screen resolution that works best with its UI scaled to 150% or 175%. Windows does this pretty well, with mainly a tiny handful of old stuff where the dev flung a binary over the wall many moons ago and forgot about it not working right. macOS handles this scenario decently too, though at a slight performance hit since it renders at a higher resolution and then scales down.
Linux on the other hand has been a mess. I’ve tried GNOME, KDE, and Cinnamon on the latest Fedora both with X11 and Wayland (except for cinnamon, which is X11 only), and none of them get non-integer scaling 100% right across both the DE and all apps. This is the exacerbated by different UI toolkits having minds of their own and needing independent configuration, where on macOS and Windows they obey the system.
In fact, in my experience Linux works best if you have a boring ultra common setup — Intel iGPU with Intel networking with a single normal DPI monitor. As soon as you start deviating from that, expect things to start getting quirky.