Why do you even wanna get rid of it? It's only the social media and endlessly scrolling news sites. Thats needs to be avoided.
Playing games on the phone.. too. I just have Tetris on my mobile.
So it's just impulse control on my side.
Is it the phone that is the problem, or more generally impulse control etc? If the former, 'blaming' and fixating on the phone may be avoiding whatever changes are really needed, elsewhere.
IANAP...
I think I will try to order and try : https://www.thekitchensafe.com/
Asked and discussed here hundreds of times.
Leave the phone turned off when you don’t need it.
Use a dumb phone.
Quit social media, delete the apps.
Somehow we all got by without smartphones for most of our history. I got through 40 years without one. It’s only essential you let it.