You can use the content property to insert your image. However, images included like this could be difficult to style. (Run code snippet in full screen before resizing browser)
@media screen and (max-width: 479px) {
div img {
display:none;
}
div::before {
content: url("https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-icon.svg?v=6e4af45f4d66");
}
}
Resize this window to see image change