Question: how to wirelessly connect an iphone to a tv?
Answer: Ensure that both the Apple TV and iOS device are on the same Wi-Fi network.
If you have an iPhone X or newer or an iPad running iOS 12 or later, swipe down from the upper-right corner to reveal the Control Center. ... 
Tap the “Screen Mirroring” button.
Select your Apple TV from the list.