To unlock the secret ending in Devil May Cry 5, you'll need to return to a fight at the beginning of the game that you might've previously disregarded as impossible. To elaborate, you'll need to go all the way back to the Prologue section in Devil May Cry 5 where you face off against Urizen for the first time.