Is an Online Nikah Considered Valid?

In today’s reality, the topic of conducting a marriage over the phone or online has become a frequent subject of discussion. Is such a marriage valid? What conditions must be observed to perform a nikah?