Are you listening for “resize” events and calling engine.resize()? The playground has the following code:
window.addEventListener("resize", () => {
if (!this._engine) {
return;
}
this._engine.resize();
});
You may need something similar.