Hello,
We suggest that you try the code provided in the following link: https://www.8theme.com/topic/problem-with-products-layout-in-shop-page/#post-316130
If this does not resolve the issue, please provide us with the URL of your Shop page so that we can take a closer look.
Kind Regards,
8theme team