You could try changing the channel!
No seriously, does she do it all the time
or only when the telly is on?
dd went through this phase, too,
but we just watched her closely and
told her 'Gently! NO hitting!'.
It meant there were tiny fingerprints on the screen
for a few months but she got bored of it soon enough.