That does not actually fix the problem and I do not think that is the right question.
You know it is your phone, right?
Here is a better question: Why is your phone so good at getting and keeping your attention?
Dude, it is because your phone is easy — like far easier than any other task in life.
So here is a simple thing you can get to fix your (and my) bad habit…