We had to take the legs off and mount the top directly to the wall because the legs were not long enough to fit over the toilet.