They do this by adding a ton of useless markup and splitting words like "ad" into single-letter spans with random class names and 8-layer deep nests of ` ` so it's very hard to write selectors against. One has to wonder how that div soup affects accessibility as I find it very unlikely that this content is presented nicely to assistive tools. I hope they get all the ADA suits they deserve for this.
Or was hard to write selectors against before, you know, AI.
It seems ironic to give up now. You can probably rig up an agent to automatically look for new div labyrinths and write selectors for them.
You can bet Facebook are using AI to generate these labyrinths!!!