My friend has a foldable screen phone and carries a cute foldable keyboard with touchpad. He can plug in when available or just do light stuff at cafes with the keyboard in his bag
And the phone should be a Samsung, which has DeX (an Android desktop mode). The official Android desktop mode isn't released yet.