To get rid of sunscreen rash, wash the affected area with mild soap, apply aloe vera or hydrocortisone cream, and avoid further sun exposure. If the rash persists, consult a dermatologist for proper diagnosis and treatment.