Whenever I set the background image for each page using the following JavaScript code,
var imageUrl = 'url(' + imageUrl + ') top left no-repeat fixed';
$('body').css({ 'background': imageUrl });
I also add
"background-size:cover!important;"
to scale the image based on the height and width of the page content.
However, my current need is to adjust the background image size according to the screen size rather than the page content size.
The issue mainly arises in the mobile view.