Img srcset size

Hi, i’ve this

  <img class="poster" srcset=" 1024w,

i want that the Browser load w500 if it’s a mobile display, w780 if its tablet and original if it’s a pc screen

how i can do it???

Check about media queries, you can write the css rules with that so that it depends on the dimension of the page

Check out this MDN article on responsive images it has a comprehensive rundown of how to use srcset.