You can stop explicit content coming through on your iPhone by heading over to Settings > Screen Time > Content & Privacy Restrictions, enabling it, then tapping Content Restrictions > Apps, TV Shows, Movies, Music, Books, or Web Content and choosing options such as Clean, PG, or Limit Adult Websites to filter out the explicit stuff from the apps and Safari.