I think smartphone camers are hit or miss. My impression is that flagship phones (the ones that cost the most, get advertised aggresively) can be very good. Some related posts that might be helpful:
- Cheap cameras or smartphones for taking pics of small insects at night in near darkness
- Cheap phone reccomendations for quality iNaturalist observations
- Macro Lenses for Smartphone Cameras
I personally use an Android-based Pixel 4a, which is mid-tier, costing about 1/3rd the price of a flagship phone. No manual focus, auto-focus isn’t great, and it can take multiple shots to get a good photo:
- Good Focus - White Sweetclover (Melilotus album)
- Bad Focus - Jumping Spider (Salticidae)
I haven’t tried a macro lense yet…