For screen mirroring to work, the network is necessary, and no data is needed. Using your phone and TV together (on the same network) means you don't need to use the internet (data) because you are just transmitting your phone's screen to your TV.