the_post_thumbnail() image sizing problem?

the_post_thumbnail() allows you to set the size of the image you want to use, the default is thumbnail but you can override it to use any of the defined sizes or a custom size e.g.

the_post_thumbnail('medium');
the_post_thumbnail('large');
the_post_thumbnail('full');
the_post_thumbnail( array(980, 450) );

Images generated by WP use srcset to give image dimensions based on device width, you can disable this by using this answer