Consult a dermatologist if home remedies do not improve dandruff, if the scalp becomes inflamed or swollen, if there are signs of infection such as oozing or crusting, or if dandruff is severe and persistent despite treatment.