How do I stop my phone addiction?

So I am in 10th. My concepts are clear and all, but I have one major problem. I use my phone late night. One time, I was on my phone till 4:30 am(this was a few months ago). How do I fix this? It's urgent cuz boards are a month away now.