This concern is specifically related to WooCommerce so, could you please once check how it works with some default WordPress themes like Twenty Twenty Three or WooCommerce Storefront to understand is it our theme issue or not?
If the issue is occurring the same with the default WordPress Themes too then you might want to consult with the WooCommerce Support in this regard. They can guide you better because this is specifically related to that.