Yes, starting with the versions of iOS 18 and Mac OS Sequoia, one is able to view an iPhone on a Mac. Open the 'iPhone Mirroring' application on the Macintosh, go to the password bar, and in a couple of seconds, the devices will be coupled. Both these devices has to be connected to the same network and signed under one Apple ID.