Legacy gas fee estimation
I am currently testing a created web app which uses web3.js. When I am trying to send a transaction, I receive following warning message:

Before continuation, I need to manually change the gas fee. Is there a way to use another gas calculation, so that the webapp correctly calculates the fee?
Currently it calculates it way too low.

Which web application are you using?
It's just a plain HTML page which includes the .js file and calls a contract function:
await window.contract.methods.testFunction().send({ from: account, value: web3.utils.toWei('0.03', "ether") });
The .js file is included like this:
<script src='./web3.min.js'></script>
@0x00xx Please could you share following info:
Steps to reproduce the behavior
- [First step]
- [Second step]
- [and so on...]
Environment
Versions used of: (applicable) Web3.js, npm, Node, OS, device , browser, wallet ..... etc
No 'Steps to reproduce' provided so closing, until.