Question: how to connect iphone to smart tv with wifi?
Answer: Connect your iOS device and Apple TV to the same Wi-Fi network.
Depending on the version you have, swipe up or down to show and open the Control Center. ... 
Tap Screen mirroring and select your Apple TV or Airplay-compatible TV from the list.