Samsung phones are really inconsistent with it though. My friend has a fold 4 and it supports dex, but my other friend with a flip 4 doesn't. It's also only really the flagship devices that support it, it hasn't tricked down to anything less than top of the line.
I discovered my iPhone 15 Pro could do that too when I hooked up a portable DP-Alt monitor over USB-C to it. The more the merrier as this just helps the overall ecosystem of products.
Oh, my old Huawei did this. Just got a new pixel, and figured it was a default feature of android.
I might have to experiment now, cause I'd hate to have to use it in a pinch and find it doesn't work