So if you’re using different images for different screen sizes, then you want to show the right caption.
I think using media queries would give more control but you could look at the Bootstrap Display Property
Simply add the necessary classes to show/hide the caption based on the screen size.
But, I think media queries may be more accurate – just wanted to provide options.