Use tablet only for educational purposes, educational apps only no brainrot or games that are made to simulate gambling, just shit like Duolingo or puzzle solving games make it routine, between certain hours on certain days of the week.
Wait until they're at least 4, preferably a little older, make sure they have good emotional regulation and stuff before letting them anywhere near it.
Make sure blue light filter is on and never let them use it at night.