It isn’t too big of a deal, because the charger should be going from hot to hot, and won’t use neutral or ground. Most EVSE (electrical vehicle supply equipment, which doesn’t really help explain what it is) will contain many safety features, such as GFCI and circuit breakers.
As part of the safety check, the Tesla mobile charger (the EVSE that is connected with a plug to the wall) will complain if it expects neutral and ground, and they are not tied together. Normally, those should be tied together at only in the electrical panel.
The proper option with the Tesla mobile charger, and other EVSEs, is to get the 10-30 plug (3 prong) instead of the 14-30 plug (4 prong). This will tell the mobile charger to not expect a ground connection.
It is possible the electrical box your dryer connection is in is grounded, and it would just be a matter of connecting ground on the 4 prong receptacle to the box.
This is probably fine, but can result in energizing the ground if for some reason the EVSE were to connect hot (either one) and neutral. There exist adapters that let you convert a single 14-30 or 14-50 type receptacle (220 volt) into one or two 5-15 or 5-20 circuits (110 volt). You would not want to use one of those on a receptacle which is really a 10-30 or 10-50 (no neutral), but just happens to have a four prong receptacle installed.
I do not know if other EVSE will have as many safety features as the Tesla mobile charger. For example, normally a sustained load is 80% of the maximum load. So a 15 amp circuit can provide 12 amps of continuous charging power, etc. I have a friend who uses level 1 charging from a cheap Amazon EVSE adapter. It is plugged into a 5-20 (20 amp) outlet. The EVSE has a 5-15 plug (just a normal electrical plug), but it happily will provide 15 amps of continuous charging.
The wiring and circuit breaker are happy at 15 amps, but when the Tesla mobile charger has its 5-15 lead connected it will only provide 12 amps. If the cheap EVSE were connected to a regular 5-15 receptacle (which it will plug into), it would be providing more current than the circuit can handle.
TLDR: lots of wiring codes are there for a reason, don’t trust some random EVSE to have your back when you cut corners.