I tried options given in the following forum post to conditionally remove (i.e. only on publish) the decoration tag that AEM puts around any component but none of them worked:
Is there a new way of doing this in 6.3 and above?
Many a times the HTML and associated styles may be developed by a different team and won't contain the extra divs AEM adds - and that messes up the HTML designs when you finally use them within AEM. That's why it would have been good if there's a way to turn off the decoration tags without affecting the edit-ability of the components.
Not sure if adding the below property helps.
AEM offers clear and simple logic controlling the decoration tags that wrap included components. Whether and how the decoration tag is rendered is defined by the combination of two factors, which this page will dive into:
See Decoration Tag