Lineage OS can often do WiFi only on old Androids.
But unless I'm mistaken, if a device only has 3G, and you want to travel with it away from WiFi, you can't even get 3G data on the device, as they shut off the 3G networks in the USA. Best you're gonna find in some rural areas may be 2G or 2.5G.
An os that will let an old device live on as a wifi only device is sorely needed.