I am having the same problem with my child who is 4, what works well for me to try and get her off the iPad is having a visual routine board so she knows what we have to do during the day and leading up to bedtime. A reward chart goes really well with this too. If you want a picture of mine let me know, my first night using my routine board went amazingly!
If she refuses to put the iPad down then I take it off her, I put it up high where she definitely cannot get to it and I stick with saying no.
No means no and children are not the bosses of their parents.
Every time I have to take the iPad away believe me it isn’t pretty at all, tantrums, hissy fits, the best thing I have found is sitting with the child and offering them some one on one time to calm down.
And when they are calm it helps to do an activity together like colouring in.
In the long run it is what is best for the child, tantrums are hard but you cannot give in to the child,
I have done triple p parenting online which helped me soooo much it isn’t funny.!! I recommend this program to all parents.
Give it a try
Also, my daughter was refusing to eat dinner and only wanted to watch toys on YouTube and I had no idea what to do, it was causing fights with family and general chaos at night time.
So I googled the supernanny and watched a few videos on how to get children to eat their dinner, and now, she sits at the table until she eats her breakfast lunch and dinner.
I hope I have helped in some way
Published 23rd September 2019