There are ways.
Ideally, you can find some open shade. If not, you can use a scrim — very thin white fabric that allows some light to pass through it, to provide shade.
Even in direct sun, try to position your subject facing away from the sun and light them with flash. Usually adjust exposure so the background is just slightly under exposed and your subject is lit correctly by the flash.
Another popular method is to have your subject facing away from the sun, meter on your subject with a hand held meter or the camera’s spot meter if it is fine enough. Expose for your subject and the background will be blown out.
Practice, practice, practice. Shoot candids of strangers at the beach, or drag a family member along to be your test subject.