It's focus stacking so basically just compensating for the way macro lenses and large apertures work. There's nothing artificial about it, the software is just layering the sharpest parts into the photo. It's a common technique, heavily used for things like astro photography and landscape photography as well. https://www.canon.co.uk/get-inspired/tips-and-techniques/foc...
Can you leverage focus stacking on a mobile camera? I poked around a bit for relevant apps but didn’t see anything credible.