If it is a Samsung, it isn't an iPad.
Two different OSs and two different manufacturers.
Try these two links, with info direct from Samsung....
https
/www.samsung.com/uk/support/tv-audio-video/how-can-i-view-my-smartphone-screen-on-my-tv/
https
/www.samsung.com/uk/support/mobile-devices/i-am-trying-to-connect-my-phone-tablet-to-my-tv-but-it-says-no-device-found/