Let me get the help you need in customising the layout of your invoice template.
On your QuickBooks Online (QBO) account, you can reset the margins on your invoice template to show it based on your needs. To do this, let me guide you on how:
At the top menu on your QBO account, go to the Gear icon.
Select Custom Form Styles.
Locate the invoice template you’d like to modify then click Edit.
Go to the Design tab.
Scroll down and click on Edit print settings.
Adjust the Page margins.
Click Done to save the changes.
After that, you can click on the Preview PDF button to see what it would look like on the actual invoice. If not, you can go back to the settings and make manual adjustments. For more info about personalising your invoice template, see this artice: Customise invoices, estimates, and sales receipts in QuickBooks Online.