The native bees can be very timid! If you only have a smartphone, the macro lenses available require getting very close up. If you have an interchangeable lens camera then reversing rings and extension tubes are pretty inexpensive and can give decent results. But getting a close up photo of a critter that moves so fast is never simple! Some people have good luck finding them when they’re asleep - the males often sleep on plant stems. I’ve never had luck with that myself.
For me, I do my photography when the bees are awake and visiting the flowers, and what I do is either sit a couple feet from some flowers (the bees will go away and then start to return) or walk slowly between patches. Most individuals are nervous but every now and then one will be friendlier. I take my first photo from almost too far away, and then move just a little closer before taking another. That helps to keep me from moving too fast and scaring the bee, and it also means I have at least SOME sort of photo to remember the experience, until I can get a better one next time.
I find that the bees are scared away if I breathe on them. I used to hold my breath when taking a sequence of pictures. These days I find that the bees will let me get closer if I’m wearing my mask!