Hello,
Try to disable Products Masonry in Theme Options > WooCommerce > Shop > Shop page Layout. Then try code from this topic – https://www.8theme.com/topic/problem-with-products-layout-in-shop-page/#post-316130
Regards