You can get some stuff running on an iPad using iSH [0], but compatibility is iffy and performance even moreso. At one point, I tried bringing a RPi4 along with me to act as a mobile dev server (it'd serve an instance of VSCode over ethernet via a USB-C/ethernet adapter on the iPad, and the iPad would share its Wifi connection to the RPi), but it was clunky to bring two devices with me. Nowadays, I use Blink Shell [1] as a mosh terminal to a remote dev server.
[0]: https://ish.app [1]: https://blink.sh