I've branched this off into it's own question since the thread where it was posted is already answered.
Can you tell me a bit more about your request? Are you trying to capture an MID value from a native mobile app or a mobile app that has web views. Also, can you tell me how DTM would be involved in your use case? If DTM isn't involved, I can move this question to the Adobe Experience Cloud Mobile community.