You can get a usb-c hub for 10$ with hdmi and usb ports.
That's essentially a desktop computer from the early 2010s in even the weakest Android phones.
More than enough to develop web apps on, I think a kid in Kenya was able to develop an entire website on a feature phone.
Samsung is trying to push Dex , so we'll see. It is worth noting many cheaper phones don't support HDMI out, but you could still figure out a way to project your phone to a monitor and have a desktop .