It is presently not possible to pass arguments to views block in Drupal 9+. This module makes it possible, allowing you embed a view through a block. It allows you to pass an argument to the view.
This module allows you to define image style on multiple screen size.
The "srcset" defines a set of images that will allow the browser to choose between.