Unify demoTemplate.js and delete the pop up on lg mode