Board Thread:Lua Help/@comment-24688171-20171029143205/@comment-1757994-20171029184527

Wikia mobile does not load any custom (either site or personal) CSS and strips any inline styles.

Your only option is to find a style that Wikia (or default MediaWiki) provides and use that.