Script for Blocking ADS [closed]

I want to create this script that can block ads. I want to do this on a locally famous site in my country and looking in the inspect element of the site, I can see that there is a “div” that is generated every time an advertisement is generated. This DIV does not have an ID, but a class that changes its name every time the page and styling are updated. I had originally thought about working on this DIV, initially calling it and then deleting it in a setInterval. (Each time it checked to see if this div was there, with a very low range like 100). Unfortunately I cannot access this div, and I also saw that the site uses a certain “GTM” (Google Tag Manager) and I was also able to probably find the site with the API’s that they use to then be able to “import” advertisements. I won’t mention the name of the site, but this site has JS code written just for the API. Except it’s indecipherable because all the code appears to have been encrypted.
My question at this point is:
If GTM has anything to do with it
If I can work on it and if you have any idea where to start
If you have any useful advice to give me
And if you can disable the API’s locally, via JS.

I use a third party extension called TapperMonkey, to inject the JS script.