Hi,
You can solved it by using this custom CSS code.
You may need to change the height based on your website gallery image size
/*CSS for CLS Start*/
/*For Desktop*/
@media screen and (min-width: 922px) {
.woocommerce-product-gallery {
min-height: 630px;
max-height: 630px;
}
}
/*For Mobile*/
@media screen and (max-width: 921px) {
.woocommerce-product-gallery > .flex-control-nav li {
height: calc(25vw - 1.5em) !important;
}
}
@media screen and (max-width: 500px) {
.woocommerce-product-gallery {
max-height: calc((25vw - 1.5em) + (100vw - 56px) + 1em);
}
}
@media screen and (min-width: 545px) and (max-width: 921px) {
.woocommerce-product-gallery {
max-height: calc((25vw - 1.5em) + (100vw - 117px) + 1em);
}
}
/*CSS for CLS End*/