I see. I would have thought that those three would work… 😔
Use AirPlay to stream audio - Apple Support
Use AirPlay to stream video or mirror the screen of your iPhone, iPad, or iPod touch - Apple Support
If screen mirroring or streaming isn't working on your AirPlay-compatible device - Apple Support
Start simple:
- try to mirror the iPhone’s home screen,
- try to mirror a short clip recorded on your iPhone,
- try both screen mirroring and in-app AirPlay.
Are the iPhone and Apple TV on the same home network? It won’t work with the phone on cellular.
On your router, don’t use different SSID network names for the 2.4 GHz band and the 5 GHz band, but have them joined into one logical network under one name. Recommended settings for Wi-Fi routers and access points - Apple Support
It will not work if your router’s firewall blocks certain ports on the internal network.
If your router is set for WPA3, that may be too advanced for the Apple TV (2nd generation). Use WPA2 instead.
If your Apple TV is on Wi-Fi, try ethernet.