If on PC, just use the uBlock origin browser extension. You should be good with that. I haven't been bothered by YouTube for a while. You may sometimes need to manually force uBlock origin to update. You can do so by opening uBlock origin's settings > Click "Purge all caches" and then click "Update now". Reload page/browser and the pop-up may go away.
The uBlock team are constantly keeping up with YouTube anti-ad block scripts. It updates once or twice daily. Sometimes they fall behind and you may get a pop-up. It's not for long though.
You can check if uBlock have updated their scripts by visiting https://drhyperion451.github.io/does-uBO-bypass-yt/
The above URL can be useful if you find yourself getting the pop-ups, but can't get rid of them with uBlock. It tells you if uBlock need to update their scripts.
.
15-Dec-2023 14:22:49