How can devices be connected without wifi and only mobile hotspots?

Dear user, you need two smartphones that can provide a network hotspot. One phone turns on the hotspot as the network provider and the other can connect to the device.