Hello,
Thanks for your response.
I’ll write this here if anyone wants the same thing and to clarify the solution that I found on one of the topics.
https://wordpress.org/support/topic/layout-change-after-using-category-filter/
I tried adding selector to the shortcode for filtering and added the same class to the products list and it worked. It would be awesome if that was included in the documentation somewhere.
Many thanks.