The treatment of your heart palpitations depends upon their cause. Most palpitations are harmless and go away on their own. Your doctor may advise you to avoid things that trigger them. If you have a medical condition that causes palpitations, your doctor will treat you for that condition.
You can take steps to prevent heart palpitations by avoiding triggers. Reduce anxiety and stress in your life. In addition, avoid stimulants (e.g., caffeine, nicotine, cold medicines and energy drinks). Decreasing or eliminating alcohol intake can also help.