Synchronizing obsidian with git,I want both desktops to be fully synchronized and phones to be partially synchronized

Because the workspace file on the mobile side often conflicts with the desktop side,I want this file is only synced on the desktop, not on the phone. Including some plug-ins that cannot be used on mobile phones ,but I can’t do this by setting up gitignore. I use the workflow copy on the phone side.I wonder if any of my friends can make that happen