Prepaid mobile carriers offer "free" phones with one month of service. $25 a piece for Samsung a16 4-pack from Metro, if you only want 1 you can do $45 for a moto g power (8gb RAM) from Straight Talk. I've been using these as alternatives for SBC projects, cheap, battery and screen can be nice, most GPIO needs can be achieved by slapping on a $2 ESP32 clone over usb-serial. The supply will probably dry up soon, I think they might be eating a loss on just the RAM BOM.
In Kenya you can get a Safaricom Smart Neon 4G phone for $22. It's actually not bad at all. It is an operator sponsored phone, but there is no monthly plan. Safaricom sustains its digital payment system (mpesa) with it.
EDIT: it’s a lie. At the bottom of the page : Dedicated device: Use a cheap Android phone ($100–200) with a prepaid SIM.