How to Configure AirPlay on an iPhone

To set up AirPlay on an iPhone, follow these steps:

Make sure that both the iPhone and AirPlay receiver are powered on and connected to the same wireless network. On the iPhone, down from the upper-right corner to open the Control Center. Tap and hold the Music control area, then select the AirPlay icon. Choose a device to connect over AirPlay. If you connect to an Apple TV that isn’t on the same Wi-Fi network as the iPhone, enter the code displayed on the TV into the phone. On some devices, select Done to establish the connection.

How to Mirror the iPhone Display

With AirPlay enabled and iPhone’s built-in screen mirroring feature, you can display your iPhone’s screen on your Apple TV or another iOS compatible device like the Roku.

Open the Control Center on your iPhone. Select Screen Mirroring or AirPlay Mirroring, depending on the iOS version. Choose your Apple TV or another compatible device. Enter the AirPlay passcode displayed on your TV into your iPhone.