Find solution to avoid orphans and widows. mPDF does not support this really.
Avoiding Page Breaks
mPDF has limited scope to control when automatic page-breaks occur, and does not have 'widows' or 'orphans' protection.
You can set the CSS value for page-break-inside to "avoid" for any block element. mPDF will try to avoid a page-break within the block, but this only works across a maximum of 2 pages, and is not compatible with table autosize or table rotate