Yes, it is possible in combination with the Matomo (Piwik) Android SDK or Matomo iOS SDK and an A/B testing framework that is compatible with your mobile platform. Read more about this in the guide for running experiments in an app.

Previous FAQ: Can I run an A/B test that requires both server-side and JavaScript changes?