in p5.js i not see a problem.
https://editor.p5js.org/kll/sketches/hXy_Ij1gB
for resize…
https://editor.p5js.org/kll/sketches/SkZFY5Qg4
also try Processing 3.5.3 p5.js mode OK
so you need to tell us more about your environment…
when you say draw works??
and it starts with a background or image
you might never see the background set from setup()