Is it ok to take mylanta if I also take zoloft (sertraline)?

You should be fine. Looking them up in a database just to be super sure, there appear to be no significant interactions between regular strength mylanta and zoloft (sertraline). You might still get side effects from either medication individually but it seems you don't need to worry too much about a possible interaction.