The basic idea is to use a jig.
Step 1: cut some tray boots to keep your tray from wiggling.
Step 2: cut a reference jig to align your material to. I prefer corner or side jigs, like these two examples:
Corner jig
Side(edge) jig: