Get application template. When view application is different than footer application, front requests application template for view. Then renders and mixes with DOM.
Include data-xp-app in application template tags. When requesting views for different application, remove old app tags and insert new app tags (scripts, styles and footer)