Is ADA compliance mandatory for websites?

Yes, compliance is mandatory. To comply with the ADA you should conform to the Web Content Accessibility Guidelines (WCAG) Version 2.1, Level AA.