Just this past weekend, just for fun and for recreational programming purposes, I tinkered with Termux on my Samsung S9 FE tablet until I got a full-fledged XFCE window environment running. It uses Termux:X11, which is a stand-alone APK that functions as an X server client, and the Termux app running an X server. So I can seamlessly use apps installed on the tablet as Android apps (such as Brave browser) with terminal sessions in Termux (essentially the "TTY" layer) and other in a full-fat terminal emulator within XFCE (in my case I really like Alacritty) to do web development (serving stuff to http://localhost:8000) or desktop graphics/game programming that's easily transferrable to my other machines because it's written in a portable scripting language like Lua and Love2D.
I got it all working the way I like over the course of a single weekend of not-particularly-focused or effortful hobby-grade tinkering.
And not a single part of this would even be possible if I was trying to do it on an iPad, despite the iPad having like 10x the compute power of my Android tablet.