How to produce glitch effects
I used particles with refraction shader, with random rotation in Global Y axis.

The particles were rectangular planes, and their material used the "Object info > Random" value to randomize what each particle does.

I used Math > Multiply and Modulo to vary the randomized value into multiple different values to change the IOR for Refract shaders, optionally use some stretched noise texture for bump-map to add extra horizontal stripes.

It uses an orthogonal camera that looks down at a textured plane - whatever you put as a texture on that plane will be the source image or video.

Result: https://youtu.be/m-h_f6KX-dw