There's `git diff -w`, and most forges expose a setting for that in their diff views.