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? It seems that you need to update your PHP version. Contact your hosting provider for help with this matter.