trying to implement an angular switch between mobile and desktop