JSFiddle - React, Tailwind, and code Playground
CSS
html {
background:url(https://picsum.photos/id/1015/600/400) 0 0 / 100% auto no-repeat;
min-height:50vh;
}
@media screen and (min-width : 800px) {
html {
background-image:url(https://picsum.photos/id/1015/1200/400);
}
}