If your iPhone or iPad has Face ID, swipe down from the top-right corner of the screen to open Control Center. If your iPhone or iPad has a Home button, swipe up from the bottom of the screen to open Control Center. If you’re mirroring through an app that has its own built-in AirPlay option (such as the Apple TV app), tap the AirPlay or Casting icon in the app you’re streaming. The icon looks like a square with a triangle at its bottom-center area or a triangle with circles emanating from the top, depending on the app. Then, tap Turn off AirPlay to stop mirroring the app to your AirPlay device.
If your iPhone or iPad has Face ID, swipe down from the top-right corner of the screen to open Control Center. If your iPhone or iPad has a Home button, swipe up from the bottom of the screen to open Control Center.
If you’re using AirPlay to connect your Mac to a second monitor, click Display Preferences on the Screen Mirroring menu, click the “AirPlay Display” menu, and then choose Off.
If you want some devices to be able to AirPlay to your Mac, you can leave the checkmark intact, and instead change the “Allow AirPlay for” option to Current user (for devices connected to your Apple ID only) or Anyone on the same network (to restrict AirPlay connections to those on your network).
Select Everyone to allow anyone to AirPlay anything they wish. Select Anyone on the Same Network to allow anyone connected to your home’s Wi-Fi network to AirPlay. Select Only People Sharing This Home if you’ve added certain users to Home Sharing and want to allow only those people to stream to this TV. Select Require password to create a password for your Apple TV—only people with this password will be able to AirPlay to this TV. Select Also Allow Nearby to AirPlay to allow anyone near your Apple TV to stream content.