Remove one srcset entry from wp_get_attachment_image
This is the wrong approach. Mobile devices are being served the small image because the default sizes attribute is incorrect for your uses case, not because of the srcset. If you provide a correct sizes attribute then browsers will choose a more appropriate source. If you remove the 300w version without changing the sizes attribute … Read more