To people using Ionic 6: as well you put images on the alert by marking tags in the object properties of the alert controller
async function(){
const alert = await this.alertController.create({
cssClass: my-custom-class',
message: '<img src="../../assets/svg/image.svg">',
});
await alert.present();
}