If you are inside the US on an F-1 student visa, you must have US work authorization to do an internship, whether it is virtual or in-person. In almost all cases, F-1 students apply for curricular practical training or CPT for this purpose.