The following formula appears while in Edit or View mode, but not New.
<div class="ExternalClass9B40A7F0EDD54166A2427671EFE970F2"><br>
How can I remove it from the Edit and View modes?

The following formula appears while in Edit or View mode, but not New.
<div class="ExternalClass9B40A7F0EDD54166A2427671EFE970F2"><br>
How can I remove it from the Edit and View modes?
You column in your list is set to use rich text. If you do not need rich text, then turn this off in your list settings.
If you do want rich text, then change the Field type in your Form fields definition to RichText and PowerApps will change the TextInput control to an HtmlInput control automatically.
I hope this is helpful for you.