Some things only live in an app on your phone: a banking code, a smart home app, a message in an app without a Mac version. With iPhone Mirroring the phone can stay in your bag and you use it in a window on the Mac.
Open the iPhone Mirroring app on the Mac, click Continue and enter your iPhone passcode. Apple’s checklist before you start:
Wi-Fi and Bluetooth on, on both devices
same Apple Account on both
within about 10 meters of each other
Mac with macOS 15 or later, iPhone with iOS 18 or later
iPhone locked
After that, a click is a tap, you can swipe and scroll with the trackpad, and you type with the Mac keyboard. You also choose between Ask Every Time and Authenticate Automatically for the login, and whether iPhone notifications should show on the Mac.
I like the notifications part on its own: messages from apps that only exist on the phone show up on the Mac with a small iPhone badge.
There are limits, and Apple lists them. The iPhone’s camera and microphone don’t work through mirroring, and Continuity Camera and AirPlay aren’t available on the Mac while you use it. A VPN on the Mac can get in the way if it blocks local networking. And availability depends on where you live: Apple says it isn’t currently available in the European Union, so if you’re there, the app tells you it can’t connect for that reason.
Further reading: Control your iPhone from your Mac (Apple)