Not the prettiest way, but you still should be able to modify the liquid file /sections/main-product.liquid and use template.suffix as an if-condition to check which template is calling the section and add your own markup for the desired template when it evaluates to true.