I got this working on Android by using the file system sync to a folder on the phone storage and then the FolderSync app to sync this to mega.
I had to make sure that I first synced my mobile joplin to a mega folder and then synced that folder with the desktop.
I also suggest people here like the post asking for a mega sync target: