If you are using Android, you can install Firefox and install Ublock addon. But there are plenty of other solutions to remove adds, for example, open-source app AdAway, another OS app Blokada. They are using local VPN connection (this VPN is only "around" your phone, doesn't send data to servers) to filter ads.
Other approach is to download your shows.
But if you are watching anime on these sites, better to avoid it, because anime is big trigger for hentai usage. Also anime is basically milking-machine of your dopamine, which can be not good for your addiction/mental health.