first enter our keyword and if our keyword is reflecting in the html response then it is a reflected xss, if the keyword is reflecting in the dom then it is a dom xss.
search location. in the sources tab to identify the source.
then we need to check the sources for location.search, location.href if these are present in source tab then it is 100% dom xss.
in dom xss we will see the keyword only in dom not in view page source

Sources: where attacker data enters JS:
location.search — reads the ?query partlocation.hash — reads the #fragment partlocation.href — reads the whole URLdocument.URL — same as location.hrefdocument.referrer — reads where the user came fromSinks: where data becomes dangerous:
innerHTML — renders raw HTMLdocument.write() — writes raw HTMLeval() — executes a string as codelocation.href = — redirects the browser (can use javascript: protocol)element.src = — sets an image/script source