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.
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.
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.