Best way to do a Ninja Gaiden or Nier style blurred sword trail effect?

In these games the sword trail sort of distorts the environment behind them like a piece of glass I’d love to know ways I could emulate it