I am looking for a solution to add a custom class before "main.content" for all pages remaining home page. Currently, I am doing below code
<referenceContainer name="page.wrapper">
<container name="your.custom.name" as="your-custom" label="Your Label Name" htmlTag="div" htmlClass="custom_class" htmlId="your-id" before="page-footer"/>
</referenceContainer>
<move element="main.content" destination="your.custom.name"/>
in default.xml.
but this code adding "custom_class" class for all pages. I want to exclude from the home page. Please suggest if anyone has an idea.