ID oder CLASS zu einem Bild (innerhalb eines Beitrags) hinzufügen

So, it looks like the ID is being stripped out my DIV as well.

<div id="example">
    <a href="#">
        <img src="image.png" alt="image" width="690" height="85">
    </a>
</div>

This was the end goal I was attempting. Which is done. I just don’t want it to appear to logged in users, which is where I was relying on the CSS