Mortar contains portland cement, and thus is alkaline, not acidic. So it does make sense that an acidic solution would react with it. Muriatic (hydrochloric) acid might do it, but even vinegar, a weak acetic acid solution, might work.
https://cretedefender.com/the-importance-of-ph/