
I broke the habit by stacking small bits of friction rather than trying to quit outright. The biggest one was moving my charger to the dresser and using a cheap alarm clock, so I have to get out of bed if I really want the phone.
Then I gave my brain a default alternative by keeping a Kindle and a boring paperback within reach. On iPhone, I went to Settings > Screen Time and set Downtime from 9:30 pm to 7 am, plus App Limits of 10 minutes for Reddit, news, and YouTube, and I hit Ignore Limit only if I physically stand up. I also enable Sleep Focus at bedtime which hides notifications, and in Accessibility I turn on Color Filters to grayscale after 9, which makes feeds look dull and not worth it. Shortcuts runs an automation at 9:25 pm that switches on Low Power Mode, opens Kindle, and turns Wi‑Fi off, so the first tap is reading not scrolling. If you are on Android, Digital Wellbeing has Bedtime mode to do grayscale and Do Not Disturb, plus App timers on your trigger apps, and you can put the phone in Focus mode with only maps and messages allowed. I also use the One Sec app which inserts a breath and a confirmation screen when I try to open social apps, and after two delays I usually back out. Last thing that helped was a hard stop with a timer, so I set a 10 minute countdown on my bedside Echo or watch, and when it goes off I close whatever is open and switch to the book.