I'm not sure that I understand the question, but...
If you want to run your phone as a hotspot (i.e. share its 3G/4G data connection with other devices via WiFi like a WiFi router), then it necessarily uses data from your cellular service provider.
If you just want to connect to WiFi hotspots, then your phone's built-in WiFi functionality can do that.