Meditation is the practice of training your mind better to pay attention to something specific without wandering. It's what I'm using to try to get my attention back, along with a myriad of other benefits.
That and leaving my phone in another room instead of in my pocket. It's a lot easier to notice the impulse to check your phone when you start walking towards the bedroom to see what's new on distraction box.
"It's human nature" used to describe something horrific like war or rape.
It's not. Human nature is as when we were children, playing with friends and loving each other.
Militaries have to condition humans to do violence to each other and to follow orders from "superiors". Half of school is quashing kids' creativity and making them follow arbitrary rules because "the adults" say so.