This is a method to change the background image for each collection using Shopify's metafields. Although it is for collections, it can also be applied to other templates such as product details and blogs. If you do not plan to change the CSS, there is no problem in editing the code directly, but this is an example of settings using the theme editor.

