So you can of course use your phone to cope with boredom — install a couple of good drawing / painting apps, music creation apps, study-something apps. Use them when bored.
Just stay away from the endorphin-pedal games which teach you nothing and are not a work of art to be experienced.
With that, a conscious act of putting down your phone and looking around is important. You can make it a habit without abandoning the phone altogether.