With AirPlay, you can enjoy music, movies, and other content from your iOS device (iPhone, iPod Touch, iPad) or Mac on your Apple TV. You can also display the screen of “iPhone”, “iPad” and “Mac” on Apple TV. Please refer to the link below for details.

Mac - Multi-display using Apple TV Display iPhone screen on Apple TV - Screen Mirroring

AirPlay settings

Everyone Everyone on the same network Only people sharing this home require a password

PIN required every time Preview Custom message Background (select photo)