You can apply the same styling to the children of an HTML element by using the children property:
let elements = document.getElementsByClassName('gs-title');
for (const element of elements) {
element.style.fontSize = "24px";
for (const child of element.children) {
child.style.fontSize = "24px";
}
}