I don’t have that habit, because phones are not interesting enough for me to stare at all day. Why in the whole amazing world would I want to limit my perspective to such a tiny screen? I have 4 computer monitors to look at instead!
How to break that habit? Stop carrying your phone around. Put it down in a resting place that is suitable for it to alert you as needed and go about your day doing other things. You might need to find some other things to do. I don’t keep my phone in my pocket unless I’m traveling somewhere on foot, or somewhere in public that I can’t safely set it down. It stays on a table or desk or whatever most of the time.