 It can be really hard to solve your insomnia problem without addressing the root cause first. Then on the night you can't sleep, this is something almost all experts agree on, whatever you do, don't stay in bed. Get up, do something relaxing, not on your phone, until you feel sleepy again, and then get back in bed.