As long as the hat isn't in contact with the treated area, you should be fine. If you're concerned, you can wait a few hours before wearing it. Best, Dr. Emer
That hat will have no bearing on your treatment. If the hat is in contact with treated skin, I would advise you not to wear the hat for a few hours. Other than that, that what is not a concern.