grandstanding

ˈɡran(d)standɪŋ

noun

the action of behaving in a showy or ostentatious manner in an attempt to attract favourable attention from spectators or the media.

they accused him of political grandstanding