Answer: This is an action of the type practiced by the Sufis. Mentioning the Prophet ﷺ with praise is prescribed, but it is extremely necessary to keep in mind the etiquette that he ﷺ has taught.
It is written in Fatawa Alamgiri:
وما يفعله الذين يدعون الوجد والمحبة لا أصل له ، ويمنع الصوفية من رفع الصوت وتخريق الثباب ، كذا فى السراجية
“The ecstasy and love of the Sufis have no basis. They will be forbidden from raising their voices and tearing their clothes, as is found in Fatawa Sirajiyyah.”
Reference: Fatawa Alamgiri: 319/5