Online testing is handled slightly differently in each area, and I'm assuming you are in the USA.
Ham radio license tests are administered by Volunteer Exam Coordinators (VECs) that are approved by the FCC to administer the exam. Some VECs offer remote testing, but many of them still do not.
There is some setup required with a webcam, a Zoom meeting, and possibly a qualified proctor – it all depends on which VEC you choose to administer your exam. Each VEC will have their own detailed requirements and instructions.
Before you get in touch with a VEC to try to schedule your exam, make sure you have studied for the exam and can easily score the 74% required to pass.
How I got my Tech license at the end of July was to use the list on ARRL for a local VE test session. I found a test session nearby and contacted via the listed info. Mine was a traditional in-person test with mask wearing. But the same concept to search in your area would apply. These test sessions should state if they're on-line or not.