adsbygoogle adds height: auto important to all its ancestors
Today, I have just found that the adsbygoogle library add all of the ads element ancestors height: auto !important
style.
This library iterates all ancestors of the ads element and set their style to style="height: auto !important;"
.
If this styling affects other elements and removing it does not affect the appearance of the ads, you can remove it after the ads initialization.
;(window.adsbygoogle || []).push({})
window.document.getElementById('root')?.removeAttribute('style')