Convert standard gate opener(doorbell) to wifi opener

hello
i have an old school doorbell on my external gate, it connects to a phone receiver which has a button that will unlock the gate. i want to add wifi to this setup so that i can open it from wherever i am. how should i go about this?