I think you could trigger popup with custom JS snippet added in /admin/customize/css_html.
For example, if your category name is nsfw, try something along this lines (when document is ready):
if ($('#topic-title a.badge-category:contains("nsfw")').length) {
console.log('This post belongs to NSFW category');
}