Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
If it works in the same way with other themes as well then it is probably some issue with your hosting server. Try to contact your hosting provider or test some other servers for your project.