fourth wall joke
In fiction, especially theater, film, or television, a joke that intentionally draws attention to the illusion of separation between the audience and the fiction itself. I love it when a TV show throws in a good fourth wall joke—I think it's fun being in on the humor like that.