Intercept HTTPS Trafic for an Android/iOS app

Hi! I want to intercept HTTP(S) traffic for an Android/iOS app(I’m using mitmproxy), to verify that a specific set of requests are executed.
I did this locally, and now I want to move these tests to a CI pipeline.
I’m not experienced with CircleCI, and not sure yet if what I’m asking can be done, I’m just trying to understand more.
I see in the CircleCI docs that we can execute mobile unit and UI tests, but the concern in my case, is that intercepting traffic also requires installing a root certificate from mitmproxy on the Android emulator and iOS simulator, as well as on the host machine. Would this scenario be possible on CircleCI? Thanks!