You could do it manually with something like this: https://wordpress.org/extend/plugins/buddypress-verified/. I’m not savvy enough to suggest how something like this could be built, but you might find that this is a good starting point.
thanks alot, but it doesn’t work with my theme , i just wanna to make it with whole website even comments , not only xprofile , i’ve done that befor , but what i meant and what i need is do it for whole website
You will need to make a function that finds the role for the displayed user.
See: https://codex.wordpress.org/Class_Reference/WP_User
You will want to use a BuddyPress function in the ID paramenter instead of the wordpress functions shown in that codex article (see BP codex).
Havn’t looked into it fully for what your trying to do, but you will proburbly want to filter ‘bp_core_get_username’ and echo the function we made above.