I think it works for plays, movies, TV, video games, internet, even books.
Anytime a fictional character interacts with the audience directly, or does something that shows awareness they're not a real person, or reminds the audience that what they're interacting with isn't real, I would count that as breaking the fourth wall.