Google Fonts has changed their UI.
To load the Roboto font, copy-paste this code into your <head> element:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">Then, use it in your CSS:
.classname {
font-family: Roboto;
...
}