If there was a reliable way to keep locally deployed app running persistently, without getting killed by android OS, even newer Samsung low end phones could be used as server. Home WiFi connection auto with 5G fallback. It is too good a setup.
USB type C Ethernet adapter with power pass through should work as well. Battery acts a power backup.
Edit: Something like https://amzn.in/d/gUg2zhT
USB type C Ethernet adapter with power pass through should work as well. Battery acts a power backup. Edit: Something like https://amzn.in/d/gUg2zhT