So, to disable AirPlay on your device, you’ll need to go to the Control Center. You can access the Control Center by swiping down from the top right corner (or up from the bottom, depending on your device) of your screen.
Once you’re in the Control Center, look for the icon labeled Screen Mirroring. It looks like a rectangle with a triangle at the bottom. Tap on that icon.
A menu will pop up with options related to screen mirroring. Look for an option called Display Preferences and tap on it. This will take you to the settings related to your display.
In the Display Preferences, you’ll see various options for your display. Look for the section that says Built-in Retina Display. It should be on the bottom left side of the screen. Tap on the option labeled AirPlay Display, which is likely set to On by default.
When you tap on AirPlay Display, a menu will appear with options for your AirPlay settings. Here, you want to select the option that says Off. This will disable AirPlay on your device.
Once you’ve selected Off, you can exit the settings and the changes will take effect immediately. AirPlay will now be disabled on your device.
I hope this helps! Let me know if you have any other questions.