To use over USB, you must trust your Mac on the iPad.
iPad and Mac must not be sharing a cellular and internet connection. To use wirelessly, both devices must have Bluetooth, Wi-Fi, and Handoff turned on and must be within 10 meters (30 feet) of each other. Both devices must be signed in to iCloud with the same Apple ID using two-factor authentication.
Available on Mac models (2018 and later).Some shared content may require a subscription to view. Sending video requires H.264 video encoding support. Users with non-Apple devices can join using the latest version of Chrome or Edge.* Coming in a software update later this year.