Gulir ke tag javascript

scrollToTag() {
  const element = document.getElementById("tagId");
  element.scrollIntoView();
},
Thyago Mac