I only have 1 Apple TV that supports this feature. The others are not new enough. It works with my iPhone 12 on this ATV, but not with my iPad. The iPad is 4 years old. I have not chased down if it is too old to do it. Both have OS 17.1 or higher.
Seems to require some really new hardware.