I recommend making yourself a set of risers, which allow you to accommodate a range of thicknesses. There are many others in the forum; just use the Search function for “risers”.
Once you make them, you’ll find this measuring device incredibly handy!