Sunscreen for 3 month old

My pediatrician told me not to use sunscreen on my LO but we have a lake lot and will be on the beach for a few hours and while I’m going to keep him in the shade as much as possible

I’m still worried he might burn. Have any of you used sunscreen on a baby and if so which kind?