iOS software update might actually be the cause of issues with AirPlay. If your iOS Software is updated still facing with the issue then follow the below two steps
Reset your network settings on your iPhone or iPad To go to the reset setings - Settings > General > Reset, and tap on Reset Network Settings. Force restart your device