HTML (for page the needs image)
<body class="with-bg">
HTML(pages that dont need image)
<body class="no-bg">
CSS
body.with-bg {
background-image: url("bg.jpg");
background-size: cover;
background-repeat: no-repeat;
}
body.no-bg {
background-image: none !important;
}
!important this might ensure that background is completely removed if any another rule was stronger
Or you may also use inline css
<body style="background-image:none;">
Please upvote if it works !