Why won’t my iPhone 12 take a screenshot?

Force reboot your iPhone or iPad. Press and hold the Home and Power buttons together for at least 10 seconds, and your device should proceed to force a reboot. After this, your device should work well, and you can successfully take a screenshot on the iPhone.