In AEM/CQ, when we include/add (sling:include, cq:include, or drag-and-drop) a component, in the front-end, there's an extra wrapper decorative DIV element. This DIV element allows CQ to bind events and content authoring functionality to so that content author can edit content in-place (right on the page).

In some case, we want disable CQ from binding content authoring capability to the DIV and in other case we want to completely remove that extra DIV element. Don't ask me why, it's just something that we need to get done LOL.

Disable CQ from binding content authoring capability to the DIV

if (...) {
    IncludeOptions.getOptions(request, true).forceSameContext(Boolean.TRUE);
}

Disable CQ from binding content authoring capability to component and completely remove that extra DIV element

if (...) {
    componentContext.setDefaultDecorationTagName("");
}

Enjoy!