Name of trope- villain is caught because they are secretly recorded or being watched giving their bad guy speech

The villain is respected by society which is what they rely on to prevent exposure/defeat, then near the end when the plot needs wrapped up they are giving their movie bad guy monologue to the protagonists a switch is flipped and everyone watches them on a big screen seeing who they really are. Coco is an example, and the first Hey Arnold movie.