is_account_page() change to page slug

You could try to use the is_page() function – https://developer.wordpress.org/reference/functions/is_page/

The function signature accepts one parameter – $page

(int|string|int[]|string[]) (Optional) Page ID, title, slug, or array
of such to check against.

Default value: ”

if ( is_page('account') ){
   // do some code here
}