Substitute legacy alert classes with the new ones. PR Close #59020
@angular/platform-server
@angular/platform-server/init