A. Adjust the device's content restrictions by going to Settings > Screen Time > Content & Privacy Restrictions. Here, you can limit the types of content that can be displayed, which may help filter out inappropriate ads.
B. Consider using a third-party ad blocker app that can help filter out unwanted ads, although this may not be foolproof and could affect the app's functionality.