Using iPhone as a camera

I'm looking for a way by which I can see what I'm seeing while recording on another screen such as Macbook's screen or a monitor. For example, in this following image, I can turn the screen to myself to see myself while it is recording. Similarly, I wish to make the screen as Macbook's screen or a monitor while recording on my iPhone.

enter image description here


I generally never tend to encourage to buy software not to advertise, however, on Iphone Epoc Cam HD(paid version) does perfectly its job. I've just bought it with somewhat hesitation since its free version seems, at first glance, really shlocky. After some tests with a lightning cable, sound and by setting resolution to 1920x1980, it works like a charm.