So basically the CSS I applied, it got applied onto these two sections as well and it’s making these two section small on mobile which I don’t want so how do I remove the css for only these two sections while making sure the css is applied onto that other section.
When you add this class template-{{ template }} to body then
you will see different class on body on every template like
index - template-index
collection - template-collection
product - template-product etc..
So, you can use this class to differentiate css on different templates
I hope, it is clear now.
You can check my above answer, you can add that class to body and paste that css in custom css or in section css, Above code will work on collection pages as i used template-collection as parent.
Please check if it work or you need further assistance