Get your iPhone 12 and laptop connected. Open the Finder on a Mac running Mac OS X Catalina. Then, open iTunes on a PC or a Mac running macOS Mojave or an earlier version.
On your iPhone 12 quickly press the volume up button and let go. Then, again repeat the same process press the volume down button, and let go. Now, press and hold the side button after that.