A little help with the image in this challenge

I started this Frontend Mentor challenge and I don't know how can I style the illustration on the left side in design file. I can do position relative but then when we go to small devices, there a totally different image file that we have to use. How do I switch images when changing screen size.
active-states.jpg
mobile-design.jpg
Screenshot_2022-09-27_155751.png
Was this page helpful?