To treat the problem, keep your eyelids clean. Warm compresses can reduce redness and swelling and help in cleaning your eyelids, too. You may also need to wash the area gently with an eyelid scrub when you wake up.
Repeat 2 or more times a day. Use a clean washcloth each time.