The easiest way to get rid of ads it’s a DNS level AdBlock, you can simply use the private DNS option of Android(with AdGuard or Mullvad free DNS resolvers), next step use alternative frontends for YouTube(NewPipe x SponsorBlock) and Music like Spotify and YT Music(xManager or ReVanced), there will be some apps what will keep showing ads like Facebook but at least it will be a minor amount.
If you want to be more sophisticated about Android AdBlocks I will suggest you to root your phone, but with these non-root options 90% of people will do pretty fine.