Content blocking a specific class?

I have a content blocker working fine, but have noticed some websites are putting a class in the main body tag, and removing it when the user taps to accept/decline cookies.

For example:

<body class="homepage ContentPage language-en modal-open no-overflow">
...
<div id="cookieNotice">...</div>

My content blocker can remove the cookieNotice div completely using: div[id="cookieNotice"], but the page doesn't scroll because the body tag includes modal-open no-overflow.

Can a content blocker remove values/classes from a tag? If so, what would the XPath look like? Thanks.

Content blocking a specific class?
 
 
Q