My grandsons would come and stay, bringing tablet devices with them, and would prefer to stay glued to them the whole time. Since we banned their use, they now play outside with my other grandchildren, on the rope swing, the zip line, or exploring in the woods making dens and forts, using their imaginations. Children should not be playing computer games, or scrolling on any social media, IMO.
The issue is setting limits.
Now obviously banning is easier and lower friction but limiting to an X time per day routine can also help with self-discipline. Depends on the person.
Kids can have the same issue with TV. I had an issue as a kid with books. My parents had to limit my reading time because I would stay up all night under my covers with a flashlight reading.