Talk regularly with your child about online safety, and make effective agreements together. For example, you could discuss giving out personal information and making online purchases in an app or a game.
If your children are young, speak to them about how, if they see anything unsettling or unkind, they should always turn off the screen and call you.