Very simple. Stop identifying yourself as a “Catholic candidate” if you support positions contrary to the teachings of the Church. Then support whatever abominations you want.
And Mahony should stop identifying himself as a “Catholic cardinal”.
Maybe as a “franciscardinal”.