Only for apple apps, it doesn't scan the entire device.
Messages, FaceTime, and AirDrop
Google has something similar I believe for Google Messages
Also they have to verify if the person using the device is a child if they want to implement this on the entire device.