Depends on the cause
If you have benign paroxysmal positional vertigo
, then a variety of maneuvers can help.
The most common of these is the epley maneuver, which you can find a description of on google. The brandt-daroff exercises and the semont maneuver are some others that can work.