Phones running iOS 26 or newer ship with a fast and powerful document scanner, which is located in an unusual app.
Android and iOS both have built-in tools to easily open QR codes from screenshots.