Creating Screen Space Distortion effect


I was trying to recreate the distortion effect that is at the end of the trailer here:

I am assuming it some kind of post effect that effects objects in a custom depth pass.

Any tips or ideas would be much appreciated!

Also, I found this tutorial but it was specific to Unity but was curious if how I could implement something similar in Unreal:

Thanks in advance!