Some self-awareness will do you some good.
Are you spacing out on your phone as your child is trying to get your attention? Are you spacing out on your phone as your child has a meltdown? Are you spacing out on your phone as your child figures out how to unlock the front door? It's okay to look at your phone. As the article below states, your kids do not require 100% of your focus. They can be age-appropriately independent for a bit.
But, when and why you are on your phone is telling as to what your priorities (and maybe deficiencies) are at the time. Take the time to engage with your kids. Model to them how to handle their emotions. Teach them how to talk with others, about manners, about wants and needs. Make them feel wanted, loved and encouraged.
Remember, though, you need the same. It's about creating healthy boundaries. On the whole, we don't function better when pulled many ways, but we do need the many parts of our life present in order to function. Do your best to create time for each part. We are raising little people to be healthy and well-rounded. Model that in yourself, show that you struggle with it and are working on improvement constantly and encourage your kids to do the same. Give them the attention, patience and space you also need in your non-parent self.