P5js sketch as background of 1 div

I have multiple

tags in my project, I want to set one of my p5js sketches as the background of a particular
. How do I do that?
I have set the z-index of the canvas in sketch.js as -1. I just want to know how to set the background for only
tag and not the entire webpage.
Thanks and regards.