Apple Screen Time is a great free tool on iOS and MacOS devices to set up rules on when your child can use apps and websites on their device. It also allows you to block adult-oriented websites from their device. iMore has a great tutorial on setting up Screen Time that you can view here.