WordPress automatically adds the width and height attributes to [gallery] shortcode images.
How to delete these attributes? Something like this but for [gallery] output.
I can think of a couple of options:
if you set image size in function.php as a "gallery"
you can remove width and height of specific image size such as "gallery":