I'm using Sitecore 9.1.1 and SXA 1.8.1. I have a cloned component for the header of my site. This header component is added to the "Header" placeholder and its rendering variant contains a number of another components such as: Navigation, Search box, Language switcher,...
The problem is: This header component is causing my site to not open on the cd server only on mobile devices. After troubleshooting, i found that the problem is caused because of two components in the Header's rendering variant: 1- a cloned language switcher component 2- a page content structure component on which i added a search box to its variant.
Whenever i remove both of the previous component from the header, the site on the cd server opens successfully, but when added it gives an error.
I'm not sure what could be wrong with those two components"Search box and language switcher". Noting that the site opens normally on desktop from both cm and cd. and also opens normally on mobile devices but only on the cm server.
Any idea what might be causing this behavior?