@AlgorithmWolf in order for YouTube to detect the use of adblockers, they are using javascript in the client to detect various behaviours.
The deployment of that js file itself requires consent, the running of the javascript within the browser to ascertain how the browser is behaving also requires consent - there is no other legal basis available under the relevant law.
There is no escape clause here for YouTube, we have EU case law which is binding on *all* Member States supporting this.