Phone can do it, but not in a way you’ll enjoy. Termux + proot Ubuntu + chromium/chromedriver sometimes works, but then Android kills background process, driver version mismatch, storage permission weirdness etc. For anything that needs to run more than 20-30 mins, just put it on VPS/RDP and use the phone like remote control.
If you really want mobile only, better rewrite the bot to requests/API style instead of browser automation. Selenium on android is kinda a weekend project, not a stable setup.