https://www.amazon.com/Ceiling-Controller-Compatible-Required-Universal/dp/B07Z948VY4
Why don’t you just swap your ceiling fan controller ? Generally they have almost all the same shape.
First result in Amazon : ceiling fan wifi controller