If both devices are connected to the same LAN network, then AirPlay should be available to you.
AirPlay might be unsupported or even blocked for select commercial content (e.g. Netflix, Xfinity TV, DirecTV, many PPV).
If your app of choice doesn’t have in-app AirPlay controls, then you can use the AirPlay Screen Mirroring function in Control Center. The Screen Mirroring icon would depict two screens, one partially behind the other.
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
iPad (7th generation) (Mid 2019) supports the current version iPadOS 15.6.1. Users are advised to keep their devices up-to-date for best support, features, and security. Update your iPhone, iPad, or iPod touch - Apple Support