I changed to two different styles, and the result was the same. I don't think it's a style issue. The mark-as-read function doesn't seem to be working correctly.
Server Information UBB.threads Version 7.7.5 Release 20201027 Server OS Linux Server Load 0.16 Web Server Apache/2.4.6 PHP Version 7.4.33 MYSQL Version 5.7.43 Database Size 1.85 GB