Just to be clear, by “title” tag do you the HTML <title> tag of your document as a whole? If so, you’ll unfortunately have to get down and dirty with WordPress’ wp_title() function → https://developer.wordpress.org/reference/functions/wp_title/
Let me know if you mean something else – we don’t offer specific code-customization help here but I’m happy to help as much as possible.