Has a pope ever been corrected publicly by a non-cleric in the presence of cardinals because of his immoral conduct? Has a pope ever been corrected publicly by a non-cleric in the presence of cardinals because of his immoral behavior?

As we all know, popes are not immune to living sinful lives. In fact, several have lived in serious sin for many years. The Church has had many holy popes, but there have been some very bad and sinful popes also.

What I mean by a non-cleric is a Catholic faithful who is not a deacon, priest, bishop or cardinal, but may be a layperson, nun or religious brother (not ordained).
According to Wikipedia, Antipope John XVI was captured, mutilated, and then was publicly degraded in the presence of the Emperor and also of Pope Gregory V. The pope was rebuked by St. Nilus the Younger (an abbot, but as far as I know not a cleric) for his cruelty. Although it was the Emperor's troops that actually committed such horrendous deeds, Pope Gregory V effectively gave his consent by doing nothing to stop it.

While I'm not sure if other cardinals were present, it seems somewhat probable given that the Pope and Emperor were both there.