I have an angular animation that only needs to take place in the responsive view that has a button that triggers the animation, How can I approach this by only having this in the responsive and not the desktop? i I have the animation working, I just need to make sure when NOT mobile the animation doesn't get trigger, but still show the div, if responsive show with animation. (I don't have a button to trigger it in the desktop) it needs to show by default.
ts
animations: [
    trigger('slideInOutCC', [
      transition(':enter', [
        style({ transform: 'translateX(100%)' }),
        animate('.7s', style({ transform: 'translateX(0%)' }))
      ]),
      transition(':leave', [
        style({ transform: 'translateX(0%)' }),
        animate('.7s', style({ transform: 'translateX(100%)' }))
      ])
    ])
  ]
 onToggleSideBar(flag: boolean) {
    this.toggleSideBarFlag = flag;
  }
HTML
 <div [@slideInOutCC] *ngIf="toggleSideBarFlag" class="credit-card-container  {{ submittingPayment ? 'payment-success-container' : ''}}">
        <app-bulk-pay-credit-card [ccTotalDue]="totalDue" [pickupAvailabilityList]='selectedEquipment' (submittingPayment)="isSubmittingPayment(true)"
          (toggleSideBar)="onToggleSideBar(false)" (close)="onCloseBulkPay(false)"></app-bulk-pay-credit-card>
      </div>
 
     
    