Ion-alert makes page unresponsive in Ionic 5

When added <ion-alert></ion-alert> inside the <ion-app></ion-app>, the page becomes un-responsive.
I want to use <ion-alert-controller> but it seems discontinued in the ionic version 5. I am new with Ionic, I am using ionic with plain javascript.