The problem isn't just the physical distance from your phone - it's that your brain is already in "autopilot scrolling" mode when you get into bed. That's why the trick is to break that association between lying down and grabbing your phone, not just putting it away. What works best is filling that time right before sleep with something that's incompatible with your phone: reading a paper book, stretching, doing breathing exercises, whatever - but something that actually requires your hands or real attention.
The hard part is managing the anxiety of "but what if I miss something important." That's the trap that doesn't get mentioned much: people put their phone away but keep thinking about it, so 10 minutes later they go find it. You need to convince yourself that nothing important is going to happen between 10 PM and 7 AM, and if something's actually urgent, someone will call you (they won't just message you on social media). It's more of a mental shift than a physical one.
Start by setting a realistic cutoff time - don't go cold turkey to 10 PM if you've been staying up until 2 in the morning for two years. Set your limit at 11:30 PM the first week, then 11 PM, and so on gradually. And when you feel the urge to grab your phone, do something that requires concentration: if you get bored, even better - boredom is actually what helps you fall asleep after.