You should avoid using your phone in bed, as the light and notifications can disrupt your sleep. Try reading or using another calming activity until you're ready to sleep.