Can you leverage focus stacking on a mobile camera? I poked around a bit for relevant apps but didn’t see anything credible.
On iPhones: https://support.apple.com/guide/iphone/take-macro-photos-and...
On Pixel: https://store.google.com/intl/en/ideas/articles/pixel-macro-...
I'd recommend playing around with it, it's a lot of fun!
I've personally found this little hack useful, but then again I don't have a DSLR and macro lens!