This is a known issue with the iPhone 12. What you can do to fix this is to reboot your phone by holding down the power button and volume up button for 10 seconds, then release them both.