How to tracking with two versions of GA: Universal Analytics and GA4?

Our app use firebase plugin linked to Google universal analytics.

We also want to track with GA4 but we don’t want to turn off google universal analytics ( GA3 ).

Is there a way to track GA3 and GA4 at the same time?

Thanks in advance