I have depression so I no longer take my phone to bed with me. I used to but I’d often spend hours on it instead of sleeping and then spend hours on it in the morning instead of getting up for the day. I’d even be late for work because of it. When I did that I’d sometimes wake up with my phone beside my head having it fall out of my hand in my sleep. Now I charge my phone in my den overnight and only sleep in my bed. It’s honestly changed my life because it forces me out of bed when I want to use my phone.
Interesting, we have a very similar experience. It wasn't the main thing keeping me up late (plenty of other screens for that, which I now avoid before bed with books instead), but it was severely impacting the start to my day. I'd rely on it to "wake up", both with the obvious alarm clock function but also with an unhealthy amount of scrolling before I could drag myself out of bed. My wife suggested it might be becoming a problem, and I initially resisted with the justification that I needed the alarm... so we just bought an alarm clock. Now the phone stays in another room while I sleep, and I'm up and out of bed with the first sound of the alarm clock. It's been a few months now, and I'm getting much more productive, healthier starts to my day, and at an earlier time too.
I'm sure this sounds silly to a lot of people for various reasons, but the simple switch to an alarm clock and keeping my phone in another room at night has vastly improved the quality of my sleep and as a result my mental health.