We have copied the experiencefragment component from /libs/cq/experience-fragments/editor/components/experiencefragment
and pasted it in our project specific folder. And in experiencefragment.html removed highlighted piece of code.
<sly data-sly-test=${data.fragmentPath}
data-sly-resource="${@path=data.fragmentPath, selectors='content', wcmmode='disabled'}"></sly>