Welcome to Microsoft Q&A!
> how can I remove yellow border line when screen capture?
No, this is by design. As you mentioned, you've already known that this border will let the customer know the app is recording. On the other hand, it will also let the customer know which part of their device is being recorded. The users should be aware of what and when and where the current app is recording.