Treatment varies depending on severity of the burn. This could be cortisone ointment to reduce inflammation or an antibacterial and antifungal topical to prevent infection. Don’t self-medicate your dog’s sunburn. Ask your vet what’s the best treatment.