Stop WordPress saving each commenter's browser and device details (user agent) with their comment.
add_filter( 'pre_comment_user_agent', '__return_empty_string' );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
WordPress stores the full browser user agent string of everyone who comments, like “Mozilla/5.0 (iPhone; CPU iPhone OS 18_1…”. It’s rarely useful and counts as extra personal data. This one line stops it being saved.
Before a comment is saved, its user agent goes through pre_comment_user_agent. Returning an empty string means nothing is stored in the comment_agent column.
Leave a test comment, then check its comment_agent value in the comments table. It should be empty.