Question: how do i get my iphone to connect to my apple tv?
Answer: Connect your iOS device to the same Wi-Fi network as your Apple TV or AirPlay 2-compatible smart TV.
Open Control Center: ... 
Tap Screen Mirroring.
Select your Apple TV or AirPlay 2-compatible smart TV from the list.