If you save the code as an .svg file, you can create a group with background style set to image, choose Static Image, and then upload this as the image you want to set. Same thing for a shape or repeating group.
I use toolbox plugin - give the html an ID, place it in a floating group with an ID as well. Give the floating group and the html a height of 100vh on page load with the toolbox workflow. Stick the .svg code in the html, place the floating group behind the page - make sure your page is transparent or it won’t show.
Some browsers won’t render preserveAspectRatio properties correctly so test and if needed add when page width conditionals to change the picture. I think it defaults to is xMinYMin Meet so if your svg is not wide enough you’ll always get the blank space at the bottom. Remove the width height and use viewbox values to make sure it scales. You can do that easily with SVGOmg: