How to version control native app and web app by git

With ionic, I develop native applications and web applications.

Basically it is the same source code, but there are also differences.

In this case, how should we manage the version of the WEB application of the native application?

Adding the fixes made to the native application to the WEB application manually, work like something will cause mistakes and it is a messy problem.

Version control uses git.
Is it better to create branch for native applications and branch for web applications, and use cherry - pick to change shared parts?

A couple of thoughts about that in the following post:

Thank you! I will use this!