I use iPhones (paid for by work) as a tool for my agronomy job. I take a large amount of photos throughout the day to help document what I find in the field.
Since at least the iPhone 12, holding the phone still and letting scene sit for a few seconds will result in a sharper photo. I’m not sure if it’s a subtle version focus stacking or a sharpening algorithm, but it’s definitely there.
On my 16e, immediately looking at a photo just taken can result in the image noticeably sharpening after a second or 2, so this may be a post processing step as well.
It's probably a version of this: https://dl.acm.org/doi/abs/10.1145/3306346.3323024
Subtle movement between shots can be used to create an image sharper than any of the inputs.
From what I can tell, it's taking multiple photos and stacking them in post. So giving the phone more time to capture sharp exposures to stack would do a lot to help.
I found this as I was taking a picture of a hare after dark without flash, the image that came up was both relatively sharp and much more illuminated / clear than my own eyes; it can't just have been long exposure time (the mechanical stabilization in phone cameras can't be that good), so I'm confident it takes many photos and layers them smartly, not unlike astrophotography.
For some time how, when you have the camera open and lining up a shot, iOS is taking image after image. When you press the shutter, algorithms determine the best or sharpest shot and processes it further.
Phil introduced it with iPhone 11 as "deep fusion"