You can add a windowWidth to html2canvas for this. Solved the issue for me!
windowWidth
const canvas = await html2canvas(element, { scale: 2, windowWidth: 1440 });
https://html2canvas.hertzen.com/configuration