If there was an honest external keyboard case for a pixel or iPhone... Might not be too far off.
I've never used it, so I can't testify to the quality.
There are a couple of old devices where mainline is possible to run, but not everything works [2].
[0] https://puri.sm/shop/librem-5/
The Librem phone looks interesting from running pure linux on the phone. Wish them success.