Popes’ roles have changed over time. Some periods produced plenty of saintly popes, while others are notorious for the opposite.
The Cadaver Synod (897): Seven months after his death, the corpse of Pope Formosus was found guilty of perjury.
Jean-Paul Laurens (1870) via Britannica