Hello @manasabojja7 ,You could also create a template with this script in the head.HTML or headerlibs.HTML file in AEM. We had a requirement in a project where based on the screen width (desktop, mobile, etc.) the users must be redirected to one app or another. The app were external to AEM, however,...