Games kill toys.
(I've just been writing a post defending gaming on another thread) but for this young of a child, you need to understand how games work in their play.
Play takes effort, you have to come up with idea yourself, invent your own stories, think independently, or find someone to play with and cooperate etc. They are all skills, useful skills, but hard.
Games automate all of it. They tell you the story, tell you what to do, give you the imaginary world/characters/functions/choices, and then give you the reward if you get it right/do the right thing.
Its like with young children. Often a 3-4 year old will struggle to make an imaginary game on their own. They need an adult to prompt them, help them, and then they can join in. But for most kids by 4-6 they can start to do that for themselves.
Well video games come in as much much better "adult" playmates, who do everything for the kid, giving them all the world/story/building they want.
Once a child gets used to that, they look at the piles of toys as a pile of things that can't move or do anything... in a similar way to how a 3 year old loves the toys but looks at them as a pile of things that needs mummy/daddy to come and create a story with.
You can have video games at 5, but limited in time, and also try and pick games that are more creative/educational/problem solving, rather than addictive online messes (roblox...)