YSK about LADB, a paid, open source app that allows you to run ADB commands on your phone without root and no PC needed.
A non-root local ADB shell client. READ BELOW!
Soooo what's the difference between this and, like, every other terminal emulator??
Don't think there's much except that adb comes bundled with it.
You can also do it for free with termux, need a bit more effort, but it'll work.
I use aShell. It's FOSS and does the same thing. You need Shizuku for is, which is also FOSS. Both Shizuku and LABD use the wireless debugging feature for this to work, which requires you to be connected to a wifi (wifi without internet works too).