How do you actually stay focused while practicing?

I swear, every time I sit down to practice, my brain immediately wants to do anything else. I’ll pick up my phone just to check something and suddenly like thirty minutes are gone, it's bad

I’ve tried leaving my phone in another room, but then I end up needing it to record an idea or to record my playing, so that’s not really working either

Does anyone actually have a solid way to stay focused? Like, what actually helps you lock in and not get distracted?

Maybe music just ain't for me?