How to center align text or element?

use mx-auto class to horizontally center align a text or html element.