For your Mac

Get UltraCast Receiver

Free. It puts your iPhone or iPad in a window OBS can capture.

macOS 15 Sequoia or later · Both devices on the same Wi-Fi network (5 GHz recommended)