There are dozens of questions like this that relate to versions of Angular other than 9. Since the fix seems straightforward and I believe I have implemented it I am wondering if it has changed in v9.
index.html
<head>
<base href="/">
app-routing.module.ts
imports: [RouterModule.forRoot(routes, { anchorScrolling: 'enabled', useHash: false })],
component.html
<a [routerLink]="['/home']" fragment="clients" data-target="#clients"><i class="bx bx-file-blank"></i> <span> Clients</span></a>
URL shown in the browser:
https://localhost:5001/home#clients
Angular version: 9.1.1