I just couldn't beat the m1 Air for price/performance last year.
That said, I didn't realize until just now it could have been due to being on such an older Linux Mint, so maybe I'm just way out of date.
There is an entire section on handles you can tweak in different environments odds are you need few of them save for the above as things are increasingly automatic. For example GDK_SCALE is enough for firefox to look correct without also fiddling with anything internal to firefox.
https://wiki.archlinux.org/title/HiDPI
Essentially hidpi on Linux is spending 5 minutes reading a wiki then enumerable hours using the system.
Being the computer scrap man I am and using nothing but hand-me-downs and things I find people throwing out. It has worked out well for me from a compatibility point of view. ;)