https://www.gartenjournal.net/monstera-frucht
In general it says:
For fruit formation it is important to leave the plant constantly at the same place, keeping the aireal roots healthy, regular watering, spaying the leaves and keeping them clean.
The location should be warm and not too much exposed to sunlight.
The fruit needs approximately one year to ripe.