Hi
I'm creating custom form app based on sharepoint list. I have noticed that my form fields ,"acting" randomly with their position in app. I think screenshots will explain situation the best:
1. This is part of my custom form when I run it from sharepoint in browser:

2. This is a part of the same form when I run it in microsoft teams (some fields on grey, green and blue zone are "cutted")

Sometimes it works fine, sometimes wrong in both. Sometimes It works fine in one, and after refresh, it again "cut" fields. I see no rule in it. I also tried to run it on diffrent browsers, and the same error SOMETIMES occured
Do you know why it happens? Any help will be appreciated
Thank you